package com.htx.oldbookpavilion.common;

import com.baidu.fsg.uid.UidGenerator;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UidGenService {

    @Resource
    private UidGenerator uidGenerator;

    public long getUid(){
        return uidGenerator.getUID();
    }

    public String parseUid(long uid){
        return uidGenerator.parseUID(uid);
    }
}
